#include <stdio.h>
int main()
{
	int n,x,i;
	int sum=1;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&x);
		if(x%2==1)
		sum=sum*x;
	}
	printf("%d",sum);
	return 0;
}
